package com.cy.mall.dao.mapper.goods;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.mall.model.domain.goods.GoodsImage;
import com.cy.mall.model.enums.goods.GoodsImageType;
import com.cy.mall.model.vo.goods.GoodsImageListVO;

import tk.mybatis.mapper.common.BaseMapper;

/**
 * 商品图片 GoodsImageMapper
 *
 * @author tanyilin
 *
 * @create 2019年1月23日 下午4:17:52
 */
@Mapper
public interface GoodsImageMapper extends BaseMapper<GoodsImage> {

	/**
	 * 查询商品图片
	 * 
	 * @param goodsId
	 * @param detailTopBannerImage
	 * @return
	 */
	List<GoodsImageListVO> selectGoodsImageListByGoodsIdAndType(@Param("goodsId") Long goodsId, @Param("type") GoodsImageType type);

}
